package study01;

public class Java11_find_object {
    public static void main(String[] args) {
        AAA aaa = new AAA();
        AAA bbb = new BBB();
        test(aaa); // aaa
        test(bbb); // aaa
    }

    static void test( AAA aaa ) {
        System.out.println("aaa");
    }
}

class AAA {

}

class BBB extends AAA {

}
